import { createRouter, createWebHistory } from 'vue-router'

import HomePage from '@/pages/HomePage.vue'
import UserLoginPage from '@/pages/user/UserLoginPage.vue'
import UserManagePage from '@/pages/admin/UserManagePage.vue'
import PictureManagePage from '@/pages/admin/PictureManager.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomePage,
    },
    {
      path: '/user/login',
      name: 'userLogin',
      component: UserLoginPage,
    },
     {
      path: '/admin/userManage',
      name: '用户管理',
      component: UserManagePage,
    },
    {  
     path: '/admin/pictureManage',  
     name: '图片管理',  
     component: PictureManagePage,  
    }

 
  ],

  
})

export default router
